Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[babel 8] Inline toSequenceExpression into @babel/traverse #16057

Merged
merged 2 commits into from Oct 23, 2023

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Oct 23, 2023

Q                       A
Fixed Issues? Closes #16054
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

toSequenceExpression needs a Scope to perform its modifications, so it should not be in @babel/types. Additionally, it's only used in a single place (#16054 (comment)).

This PR removes it from @babel/types, and it inlines it in that single usage place.

@liuxingbaoyu I noticed this while reviewing #15822 -- I'd prefer to just move gatherSequenceExpressions (done in this PR) rather than "adjusting" it, since it's not publicly exposed anyway.

@nicolo-ribaudo nicolo-ribaudo added PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release pkg: traverse pkg: types labels Oct 23, 2023
@babel-bot
Copy link
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/55700/

Copy link
Member

@liuxingbaoyu liuxingbaoyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@nicolo-ribaudo nicolo-ribaudo merged commit 6d9725c into babel:main Oct 23, 2023
46 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the move-toSequenceExpression branch October 23, 2023 16:23
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jan 23, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: traverse pkg: types PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[babel 8] Move t.toSequenceExpression to @babel/traverse, or remove it
3 participants